<template>
  <div>
    <!-- 标签页 -->
    <el-tabs v-model="activeName" @tab-click="handleTabClick">
      <el-tab-pane label="用户端隐私政策" name="first">
        <el-input
          type="textarea"
          :rows="4"
          placeholder="请输入用户端隐私政策内容"
          v-model="policyContents.first"
        ></el-input>
      </el-tab-pane>
      <el-tab-pane label="医生端隐私政策" name="second">
        <el-input
          type="textarea"
          :rows="4"
          placeholder="请输入医生端隐私政策内容"
          v-model="policyContents.second"
        ></el-input>
      </el-tab-pane>
      <el-tab-pane label="签约协议" name="third">
        <el-input
          type="textarea"
          :rows="4"
          placeholder="请输入签约协议内容"
          v-model="policyContents.third"
        ></el-input>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeName: 'first',
      policyContents: {
        first: '1111111111111111111111111',
        second: '222222222222222222222222222',
        third: '3333333333333333333333333'
      }
    };
  },
  methods: {
    handleTabClick(tab, event) {
      // 可以在这里处理标签页点击事件
      console.log(tab, event);
    }
  }
}
</script>